
package com.pace.gonu.model.chnl;

import java.util.Calendar;

import com.pace.gonu.constants.EndType;
import com.pace.gonu.constants.GameType;
import com.pace.gonu.constants.Order;
import com.pace.gonu.model.status.PlayStatus;
import com.pace.gonu.util.JSONMapper;


/**
 * @author pace
 */
public class PlayChannel {
	private int chnlNumber;
	private boolean isPlay = false;
	private PlayStatus playStatus;
	private GameType gameType = GameType.HOBAK;
	private String firstUser;
	private String secondUser;
	private Order winner;
	private Calendar lastAccessDate;
	private EndType endType;
	private String firstAuthKey;
	private String secondAuthKey;
	private boolean isSelectGameType = false;
	private boolean isPVC = false;

	/**
	 * @param chnlNumber
	 */
	public PlayChannel(int chnlNumber) {
		this.chnlNumber = chnlNumber;
	}
	public boolean isPlay() {
		return isPlay;
	}
	public void setPlay(boolean isPlay) {
		this.isPlay = isPlay;
	}
	public int getChnlNumber() {
		return chnlNumber;
	}
	public void setChnlNumber(int chnlNumber) {
		this.chnlNumber = chnlNumber;
	}

	public String getPlayStatus() {
		return JSONMapper.objectToApiJsonStringWithOutMessage(playStatus);
	}

	public PlayStatus getPlayStatusObject() {
		return playStatus;
	}
	public void setPlayStatus(PlayStatus playStatus) {
		this.playStatus = playStatus;
	}
	public String getGameType() {
		return gameType.toString();
	}
	public GameType getGameTypeObject() {
		return gameType;
	}
	public void setGameType(GameType gameType) {
		this.gameType = gameType;
	}
	public String getFirstUser() {
		return firstUser;
	}
	public void setFirstUser(String firstUser) {
		this.firstUser = firstUser;
	}
	public String getSecondUser() {
		return secondUser;
	}
	public void setSecondUser(String secondUser) {
		this.secondUser = secondUser;
	}
	public Order getWinner() {
		return winner;
	}
	public void setWinner(Order winner) {
		this.winner = winner;
	}

	public Calendar getLastAccessDate() {
		return lastAccessDate;
	}

	public void setLastAccessDate(Calendar lastAccessDate) {
		this.lastAccessDate = lastAccessDate;
	}

	public String getEndType() {
		return endType.toString();
	}

	public EndType getEndTypeObject() {
		return endType;
	}
	public void setEndType(EndType endType) {
		this.endType = endType;
	}
	public String getFirstAuthKey() {
		return firstAuthKey;
	}
	public void setFirstAuthKey(String firstAuthKey) {
		this.firstAuthKey = firstAuthKey;
	}
	public String getSecondAuthKey() {
		return secondAuthKey;
	}
	public void setSecondAuthKey(String secondAuthKey) {
		this.secondAuthKey = secondAuthKey;
	}
	public boolean isSelectGameType() {
		return isSelectGameType;
	}
	public void setSelectGameType(boolean isSelectGameType) {
		this.isSelectGameType = isSelectGameType;
	}
	public boolean isPVC() {
		return isPVC;
	}
	public void setPVC(boolean isPVC) {
		this.isPVC = isPVC;
	}
}
